package com.example.factory.responsibility.node;

public  class DefaultFirstProcessNode implements ProcessNode{
    @Override
    public Boolean checkNode() {
        System.out.println("check my fist node");
        return true;
    }

    @Override
    public String processInfo() {
        System.out.println("get node process info  from db or redis");
        return "rule from db";
    }

    @Override
    public String handler() {
        System.out.println("compare rule info with param");
        return "all is ok";
    }
}
